$wgMemc = new FakeMemCachedClient;
}
- function tearDown() {
- global $wgMemc;
-
- $wgMemc = null;
- }
-
// Bug 8689 - Long numeric lines kill the parser
function testBug8689() {
global $wgLang;
unset( $wgMemc );
unset( $this->lc );
unset( $this->lang );
- $wgContLang = null;
+ $wgContLang = Language::factory( 'en' );
}
function testGetPreferredVariantDefaults() {
}
}
- function tearDown() {
- global $wgContLang, $wgLang;
- $wgContLang = $wgLang = null;
- }
-
function setUserPerm( $perm ) {
if ( is_array( $perm ) ) {
self::$user->mRights = $perm;
$GLOBALS['wgUser'] = self::$sysopUser->user;
}
-
- function tearDown() {
- global $wgMemc;
- $wgMemc = null;
- }
}
class UserWrapper {
}
- function tearDown() {
- global $wgMemc;
- $wgMemc = null;
- }
-
protected function doApiRequest( $params, $session = null ) {
$_SESSION = isset( $session ) ? $session : array();
$wgDBtype = self::$dbtype;
$wgLBFactoryConf = self::$factoryconf;
$wgDBservers = self::$dbservers;
- $wgContLang = null;
}
function testUpdateText() {